<?php

namespace app\common\model;

class GoodsCategory extends \addons\shopro\model\Category
{

    public static function getHomeCategory()
    {
        return self::where('status', 'normal')
            ->where('pid', '>', 0)
            ->where('name', '<>', '付邮轻享')
            ->order('weigh', 'asc')
            ->field('id, pid, name, image, weigh')
            ->limit(4)
            ->select();
    }
}
